package com.socialnetwork.dao;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import com.socialnetwork.model.UserJB;

public class UserDAO {

	
	public UserJB listClient(){
		
		UserJB client = new UserJB();
		client.setName("Fulano");
		client.setAddress("Rua teste, 001 - SP");
		client.setEmail("fulano@teste.com");
		try {
			Calendar birth = Calendar.getInstance();
			Date date = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/1988");
			birth.setTime(date);
			client.setBirthdate(birth);
		} catch (ParseException e) {
			e.printStackTrace();
		}
				
		return client;
		
	}
	
	public void addClient(UserJB client){
		//
	}
	
}
